﻿@model SD.Entity.RoleInfo

@{
    ViewBag.Title = "角色编辑";
    ViewBag.ParentMenu = "网站管理";
    ViewBag.ChildMenu = "角色编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section css{
    

}
<div class="widget-body">
    <form id="frmEdit" class="form-horizontal bv-form" method="post" action="@Url.Action("RoleInfoSave")">
        @Html.HiddenFor(m => m.Id)
        <div class="form-group has-feedback">
            <label class="col-sm-2 control-label"><span style="color: red;">*</span>角色名:</label>
            <div class="col-sm-3">
                @Html.TextBoxFor(m => m.RoleName, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group has-feeback">
            <label class="col-sm-2 control-label"><span style="color: red;">*</span>删除标识：</label>
            <div class="col-sm-3">
                @Html.ResourceDropDownList("DelFlag", "DelFlag", Model.DelFlag, new { @class = "form-control selectpicker" })
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-sm-2 control-label">提交时间：</label>
            <div class="col-sm-3">
                @Html.TextBoxFor(m => m.SubTime, new { @class = "form-control" , @onclick = "WdatePicker();"})
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-sm-2 control-label">备注：</label>
            <div class="col-sm-3">
                @Html.TextBoxFor(m => m.Remark, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-sm-2 control-label">修改时间：</label>
            <div class="col-sm-3">
                @Html.TextBoxFor(m => m.ModifiedOn, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="col-sm-2 control-label"><span style="color: red;">*</span>排序：</label>
            <div class="col-sm-3">
                @Html.TextBoxFor(m => m.Sort, new { @class = "form-control" })
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-3">
                <input id="btnSave" class="btn btn-palegreen" type="submit" name="submit" value="保存">
                <input id="btnReturn" class="btn btn-yellow" type="button" value="返回">
            </div>
        </div>

    </form>
</div>
@section script{

    <script src="~/Content/Common/js/jquery.form.js"></script>
    <script src="~/Content/Admin/Bootstrap/js/bootstrapValidator/bootstrapValidator.js"></script>
    <script src="~/Content/Admin/Bootstrap/js/bootbox/bootbox.js"></script>
    <script src="~/Content/Common/js/plugins/My97DatePicker/WdatePicker.js"></script>
    <script src="~/Content/Web/js/roleInfo/roleInfoEdit.js"></script>

    <script type="text/javascript">
        var util = {};
        var options = {
            listUrl: "@Url.Action("Index")"
        };
        
    </script>
}
